#ifndef TEXTVERBOSEMESSAGE_H
#define TEXTVERBOSEMESSAGE_H

// #include "src/utils/timer.h" // FIXME howso this is here?
#include "src/gui/panel.h"

using namespace std;

struct vmsg
{
	string str;
	unsigned int	appeartime;
};

class Textverbosemessage : public Panel
{
	public:
// 		static Textverbosemessage* Instance();
		Textverbosemessage();
		~Textverbosemessage();

		void		draw();

		void		addBirth(stringstream& streamptr);
		void		addDeath(stringstream& streamptr);
		unsigned int	maxMessages;
		unsigned int	msgLifetime;

		void swap();

	protected:
// 		Textverbosemessage();
// 		~Textverbosemessage();
	private:
		vector<vmsg*>	births;
		vector<vmsg*>	deaths;

// 		float		longestLength;
		void		getLongestMsg();

		void		deleteExpiredMsg();
		
		unsigned int	col2;
};

#endif
